import java.util.ArrayList;

public class StationButton {
	private int id;
	private Station station;
	private int radius;
	private boolean selected;
	private double x;
	private double y;
	private double lon;
	private double lat;

	public StationButton(Station station, int radius, double lon, double lat) {
		this.station = station;
		this.radius = radius;
		this.lon = lon;
		this.lat = lat;
		selected = false;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public void setRadius(int radius) {
		this.radius = radius;
	}
	
	public int getRadius() {
		return radius;
	}
	
	public boolean getSelected() {
		return selected;
	}
	
	public void setSelected(boolean value) {
		selected = value;
	}
	
	@Override
	public int hashCode() {
		String id = "" + this.id;
		/*final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());*/
		return id.hashCode();
	}
	
	@Override
	public boolean equals(Object obj) {
		StationButton other = (StationButton)obj;
		if(this.hashCode() == other.hashCode()) {
			return true;
		} else {
			return false;
		}
	}

	public void setY(double y) {
		this.y = y;
	}

	public double getY() {
		return y;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getX() {
		return x;
	}

	public void setLon(double lon) {
		this.lon = lon;
	}

	public double getLon() {
		return lon;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	public double getLat() {
		return lat;
	}

	public void setStation(Station station) {
		this.station = station;
	}

	public Station getStation() {
		return station;
	}
	
}
